﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Opennav.MapGenerator.Map.Labels;
using Opennav.MapGenerator.Geometry;

namespace Opennav.MapGenerator.Locator
{
    public class GeoPlace
    {
        private List<GeoPlace> _places = new List<GeoPlace>();

        public GeoPlace(string name, string isin, int level, Coordinate coordinate)
        {
            this.Name = name;
            this.IsIn = isin;
            this.Level = level;
            this.Coordinate = coordinate;
        }

        public string IsIn { get; set; }

        public string Name { get; set; }

        public Coordinate Coordinate { get; set; }

        public GeoPlace Parent { get; set; }

        public GeoArea ParentArea { get; set; }

        public int Level { get; set; }

        public List<GeoPlace> Subplaces { get { return _places; } }
    }
}
